import request from '@/router/axios';

export const getList = (current, size, params) => {
  return request({
    url: '/api/smart-ninebasic/dispute/conflictsResolve/list',
    method: 'get',
    params: {
      ...params,
      current,
      size,
    }
  })
}

export const getDetail = (id) => {
  return request({
    url: '/api/smart-ninebasic/dispute/conflictsResolve/detail',
    method: 'get',
    params: {
      id
    }
  })
}

export const remove = (ids) => {
  return request({
    url: '/api/smart-ninebasic/dispute/conflictsResolve/remove',
    method: 'post',
    params: {
      ids,
    }
  })
}

export const add = (row) => {
  return request({
    url: '/api/smart-ninebasic/dispute/conflictsResolve/save',
    method: 'post',
    data: row
  })
}

export const update = (row) => {
  return request({
    url: '/api/smart-ninebasic/dispute/conflictsResolve/update',
    method: 'post',
    data: row
  })
}
//待办矛盾
export const todoList = (current, size, params) => {
  return request({
    // url: '/api/smart-flow/client/task-todo-list',
    url: '/api/smart-ninebasic/dispute/conflictsResolve/todo-list',
    method: 'get',
    params: {
      ...params,
      current,
      size,
    }
  })
}
//已办矛盾
export const doneList = (current, size, params) => {
  return request({
    url: '/api/smart-ninebasic/dispute/conflictsResolve/done-list',
    method: 'get',
    params: {
      ...params,
      current,
      size,
    }
  })
}
//签收矛盾列表
export const claimList = (current, size, params) => {
  return request({
    url: '/api/smart-ninebasic/dispute/conflictsResolve/claim-list',
    method: 'get',
    params: {
      ...params,
      current,
      size,
    }
  })
}
//签收矛盾
export const claimTask = (taskId) => {
  return request({
    url: '/api/smart-ninebasic/dispute/conflictsResolve/claim-task',
    method: 'post',
    params: {
      taskId
    }
  })
}
//处理流程
export const completeTask = (data) => {
  return request({
    url: '/api/smart-ninebasic/dispute/conflictsResolve/complete-task',
    method: 'post',
    data
  })
}


